<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>

<trans:initPage module="orgquickadd" />

<div align="center" class="text_search">
<b><h2><trans:showPageMessage label="temporg" /></h2></b>
</div>
<table  class="text" cellpadding="5" cellspacing="1" border="0" bgcolor="#3399CC" >
<tr><td width="100" bgcolor="#FFFFFF" align="right"><b>
<trans:showPageMessage label="name" /></b></td><td bgcolor="#FFFFFF"> <bean:write name="EDITED_Organization" property="name"/></td></tr>
<tr><td width="100" bgcolor="#FFFFFF" align="right"><b><trans:showPageMessage label="codeauto" /></b></td><td bgcolor="#FFFFFF"><bean:write name="EDITED_Organization" property="AIDAOrg"/></td></tr>
<tr><td width="100" bgcolor="#FFFFFF" align="right"><b><trans:showPageMessage label="comments" /></b></td><td bgcolor="#FFFFFF"><bean:write name="EDITED_Organization" property="description"/></td></tr>
<tr><td width="100" bgcolor="#FFFFFF" align="right"><b><trans:showPageMessage label="modified" /></b></td><td bgcolor="#FFFFFF"><bean:write name="EDITED_Organization" property="update"/></td></tr>
</table>
<p>
<table width="70%" class="text" cellpadding="5" cellspacing="1" border="0" bgcolor="#3399CC">
<tr><td bgcolor="#FFFFFF" >
<trans:showPageMessage label="orglink1" /> <p>
<input type="button" class="buton" value='<trans:showPageMessage label="searchfororg" hide_link="true" />' onclick="javascript:open_orgs();" />


<logic:present name="selected">
<p><b><trans:showPageMessage label="orglink2" /> </b>
<p>
<table  width="80%" class="text" cellpadding="5" cellspacing="1" border="0" bgcolor="#3399CC" >
<tr><td bgcolor="#FFFFFF" align="right"><trans:showPageMessage label="name" /></td><td bgcolor="#FFFFFF"> <bean:write name="selected" property="name"/></td></tr>
<tr><td bgcolor="#FFFFFF" align="right"><trans:showPageMessage label="code" /></td><td bgcolor="#FFFFFF"><bean:write name="selected" property="AIDAOrg"/></td></tr>
<tr><td bgcolor="#FFFFFF" align="right"><trans:showPageMessage label="description" /></td><td bgcolor="#FFFFFF"><bean:write name="selected" property="description"/></td></tr>
</table>
<p>
<trans:showPageMessage label="orglink3" /> <p>
<b><trans:showPageMessage label="orglink4" /> </b>

<form name="quicklink" action='<html:rewrite page="/admin/org/quickadd.do"/>' >
	<input type="hidden" name="quicklink" value="y"/>
	<input type="hidden" name="edit_id" value=<bean:write name="EDITED_Organization" property="id"/> />
    <input type="hidden" name="link_id" value=<bean:write name="selected" property="id"/> />
   	<input type="submit" class="buton" value='<trans:showPageMessage label="linkorgs" hide_link="true" />'/>
</form>


</logic:present>

</tr>

<tr><td bgcolor="#FFFFFF">
	<trans:showPageMessage label="orgedit" /> <p>
<form name="quickedit" action='<html:rewrite page="/org/editorg.do"/>' >
	<input type="hidden" name="orgid" value=<bean:write name="EDITED_Organization" property="id"/> />
	<input type="submit" class="buton" value='<trans:showPageMessage label="edittemporarytag" hide_link="true" />'/>
</form>
	<trans:showPageMessage label="translator.showhiddentags" /> 
</td></tr>
</table>

<form name="quickselect" action='<html:rewrite page="/admin/org/quickadd.do"/>' >
	<input type="hidden" name="quickselect" value="y"/>
	<input type="hidden" name="edit_id" value='<bean:write name="EDITED_Organization" property="id"/>' />
</form>


<script language="javascript">
    function open_orgs() {
        ed_donor_orgs_win = window.open(
        '<html:rewrite page="/org/selector.do?hidequickadd=y"/>',
        'ed_donor_win', 'HEIGHT=400,WIDTH=500,scrollbars=yes');
    };
    
    function after_org_sel() {
		document.quickselect.submit();
    };
</script>